package com.yxc.translationdemo.transcode;

import java.lang.reflect.Field;

/**
 * @author: YXC
 * @time: 2022/12/5 19:47
 **/
public class SexDataSource implements TranslationData<Integer> {

    @Override
    public String get(Integer key, Field field) {
        if (key == 1) {
            return "男";
        } else if (key == 2) {
            return "女";
        }
        return "未知";
    }

}
